//
//  HSYBaseRefleshModel.m
//  高仿暴走斗图
//
//  Created by key on 16/3/16.
//  Copyright © 2016年 huangsongyao. All rights reserved.
//

#import "HSYBaseRefleshModel.h"

@implementation HSYBaseRefleshModel

- (instancetype)init {
    if (self = [super init]) {
        _page = 0;
        _size = 100;
        
    }
    return self;
}

- (void)nextPage {
    
    _page ++;
}

- (void)setUpdateSize:(NSInteger)size {
    
    _size = size;
}

- (RACSignal *)updateWithPage:(NSInteger)page {
    //请于子类中重写本方法，用于下拉或者上拉类型的加载更多（翻页）效果。
    return nil;
}

- (void)updateWithMergeAction:(SEL)action andSignals:(NSArray<RACSignal *> *)signals {
    
    [self rac_liftSelector:action withSignalsFromArray:signals];
}


@end
